@import './variables.scss';
@import './_handle.scss';
@import "./_themes.scss";

@mixin colorBtn($color, $type) {
  // color: $color;
  @include font_color($color);
  &:hover {
    @include font_color($color);
  }
  @if $type != color {
	  border: 1px solid;
    @include border_color($color);
    @include background_color('colorFFF', 1);
	    @if $type == solid {
        @include background_color($color, 1);
        @include font_color('colorFFF');
	    }
	   
	   &:hover {
        @include font_color($color);
        @include background_color($color, .2);
        @include border_color($color);
	    @if $type == solid {
        @include background_color($color, .7);
        @include font_color('colorFFF');
	    }
	   }
	   &:focus {
        @include font_color($color);
        @include background_color($color, .1);
        @include border_color($color);
	     @if $type == solid {
          @include background_color($color, .7);
          @include border_color($color);
          @include font_color('colorFFF');
	     }
	   }
 }

}
.el-button{
  // padding: 8px 24px !important;
  border-radius: 2px !important;
}
// 空心按钮
.theme-btn-hollow{
  @include colorBtn('colorTheme', 'hollow')
}
// 实心按钮
.theme-btn-solid{
  @include colorBtn('colorTheme', 'solid')
}
// 按钮字体
.theme-btn-color{
  @include colorBtn('colorTheme', 'color')
}
// 弹出窗按钮
.el-message-box__btns {
  .el-button{
    @include colorBtn('colorTheme', 'hollow')
  }
  .el-button--primary {
    @include colorBtn('colorTheme', 'solid')
  }
}

.el-button--primary{
	@include colorBtn('colorTheme', 'solid')
}
// .el-dialog__wrapper .dialog-footer .el-button--default{
// 	@include colorBtn('colorTheme', 'hollow')
// }
.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;

  &:hover {
    background: #fff;

    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }

  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }

  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}

.custom-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #fff;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 4px;
}
